Skip to content

Small cleanup #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2019
Merged

Small cleanup #57

merged 2 commits into from
Sep 23, 2019

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Sep 21, 2019

Added return value to _interruptStatus. I'm not entirely confident we are returning all we should.

Here is example returning fault mask register as well.

Here is one of very few example sketches I could find that actually use the __interruptsStatus() call.

Also in this PR - Small changes to SPI.h. I decided to remove warnings to SS pin definition. I've never used a pin called 'SS' and use a GPIO for CS instead. Apollo3 doesn't have hardware support for SS so I think we can expunge it. Also, changed warning on 'CLK' to 'SCK'. I see SCK more often for SPI pins and this follows the pad map for Apollo3.

Fixes issue 55. Functions that don't return a value have caused unpredicatable behavior on Cortex-M3 in the past. Added comment to docs on ARM showing primask register.
Apollo3 doesn't use dedicated slave select pins for SPI. Any GPIO works so removed warning for no SS. Changed warning to SCK as the variants use 'SCK' nomencalture instead of 'CLK'.
@nseidle
Copy link
Member Author

nseidle commented Sep 21, 2019

Should have noted - this PR is an effort to fix warnings found in issue #55.

@oclyke oclyke merged commit a289272 into master Sep 23, 2019
@oclyke oclyke deleted the smallCleanup branch September 23, 2019 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants